package dao
/*

import (
    "fmt"
    "strings"
    "helper/redisclient"
)

var rc = redisclient.NewRedisClient(map[string]string{"host": "127.0.0.1:6379"}, 1000, 1000, 1000, 80, 80, 600)

func QueryProductSeckillingInfo(productid string) map[string]string{
	result, _ := rc.HGetall("result")
	return result	
}



func QueryUserSeckillingInfo(productid string, userid string) (string, string){
	goodsnum, _ := rc.HGet("result", userid)
	if strings.EqualFold(goodsnum, "") {
		return "2", ""
	} else {
		return "1", goodsnum
	}
}

func main() {
	status, goodsnum := QueryUserSeckillingInfo("", "125")
	fmt.Println(status, goodsnum)
	resultmap := QueryProductSeckillingInfo("")
	for i, j := range resultmap {
		fmt.Println(i, j)
	}

}*/
